﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="THIO_DRAW.ascx.cs" Inherits="uicontrol_THIO_DRAW" %>
 <style type="text/css">
 
.THIO 
{
	width: 500px;
	margin: 10px auto ;
	
	}
	
	.THIO .SelectionArea 
	{
		
	}
	.THIO .SelectBox 
	{
		width: 120px;
		
	}	
	.THIO .SelectLabel 
	{
		width: 100px;
		text-align: right;
	}	
	.THIO .TABLE 
	{
		border: solid 1px blue;
		padding: 5px;
	}
	.THIO .TABLE .TR
	{
		
		
	}
	
	.THIO .TABLE .TD
	{
		border: solid 1px red;		
		vertical-align:bottom;
		font-size: 12px;
	}
	.THIO .DesArea 
	{
		border:solid 1px blue ;
		
		
	}
	.THIO .DesAreaTD 
	{
		vertical-align:bottom;
		}
	.THIO .InfoArea
	{
		border:solid 1px blue ;
		
	} 
	.THIO .DesArea .DesTD
	{
		
		
	}
.THIO .DesArea .Des 
	{
		width: 20px;
		height: 20px;
		
		
	}
	
	.THIO .DesArea .Label
	{
		text-align:left ;		
		
	}
	
	.THIO .Cols
	{
		
		
	}
	
	
	.THIO .T
	{
		background-color:#FF3300 ;
		
	}
	
	.THIO .H
	{
		background-color:#004000 ;
	}
	.THIO .I
	{
		background-color:#004080 ;
	}
	.THIO .O
	{
		background-color:#FF0080 ;
	}
 </style>
<div class="THIO">
    <table class="TABLE">
        <tr>
            <td colspan="5">
                <div class="SelectionArea">
                    <div class="FieldContainer">
                        <label class="SelectLabel">
                            Chọn Doanh nghiệp</label>
                        <asp:DropDownList runat="server" DataSourceID="companyData" DataTextField="tendoanhnghiep"
                            DataValueField="madoanhnghiep" AutoPostBack="true" CssClass="SelectBox" ID="cb_company" OnSelectedIndexChanged="cb_company_SelectedIndexChanged">
                        </asp:DropDownList>
                    </div>
                    <asp:SqlDataSource runat="server" ID="companyData" ConnectionString="<%$ ConnectionStrings:evaConn %>"
                        SelectCommand="SELECT [madoanhnghiep], [tendoanhnghiep] FROM [doanhnghiep] where status = 1  union select 0, N'----Chọn một----'">
                    </asp:SqlDataSource>
                    <div class="FieldContainer">
                        <label class="SelectLabel">
                            Chọn Sản phẩm</label>
                        <asp:DropDownList runat="server" DataTextField="tensanpham" DataValueField="masanpham"
                            AutoPostBack="true" DataSourceID="productData" CssClass="SelectBox" ID="cb_product" OnSelectedIndexChanged="cb_product_SelectedIndexChanged">
                        </asp:DropDownList>
                    </div>
                    <asp:SqlDataSource runat="server" ID="productData" ConnectionString="<%$ ConnectionStrings:evaConn %>"
                        SelectCommand="SELECT masanpham, tensanpham from sanpham where status = 1 and madoanhnghiep=@madoanhnghiep  union select 0, N'----Chọn một----'">
                    <SelectParameters>
                    <asp:ControlParameter  Name="madoanhnghiep" ControlID="cb_company" PropertyName="SelectedValue"/>
                    </SelectParameters>
                    </asp:SqlDataSource>
                </div>
            </td>
        </tr>
        <tr class="TR">
            <td class="TD" style="height: <%=getMAX_HIGHT() %>px">
                <%=getTperMax()%>
                <div class="Cols T" style="height: <%=getTperMax()%>">
                </div>
            </td>
            <td class="TD" style="height: <%=getMAX_HIGHT() %>px">
                <%=getHperMax() %>
                <div class="Cols H" style="height: <%=getHperMax() %>">
                </div>
            </td>
            <td class="TD" style="height: <%=getMAX_HIGHT() %>px">
                <%=getIperMax() %>
                <div class="Cols I" style="height: <%=getIperMax() %>">
                </div>
            </td>
            <td class="TD" style="height: <%=getMAX_HIGHT() %>px">
                <%=getOperMax() %>
                <div class="Cols O" style="height: <%=getOperMax() %>">
                </div>
            </td>
            <td class="DesAreaTD">
                <div class="DesArea">
                    <table>
                        <tr>
                            <td class="DesTD">
                                <div class="Des T">
                                    <span></span>
                                </div>
                            </td>
                            <td>
                                <div class="Label">
                                    Công nghệ
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="DesTD">
                                <div class="Des H">
                                </div>
                            </td>
                            <td>
                                <div class="Label">
                                    Con người
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="DesTD">
                                <div class="Des I">
                                    <span></span>
                                </div>
                            </td>
                            <td>
                                <div class="Label">
                                    Thông tin
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="DesTD">
                                <div class="Des O">
                                </div>
                            </td>
                            <td>
                                <div class="Label">
                                    Quản lý
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="InfoArea">
                    <table>
                        <tr>
                            <td>
                                Tổng cộng
                            </td>
                            <td>
                                <div class="Label">
                                    <%=getTotalPerMax()%>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="InfoArea">
                    <table>
                        <tr>
                            <td>
                                Nhận xét:
                            </td>
                            <td>
                                <div class="Label">
                                    <%=getDescription()%>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <asp:TextBox ID="txtT" Width="20px" MaxLength="4" runat="server" CssClass="Input"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtH" Width="20px" MaxLength="4" runat="server" CssClass="Input"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtI" Width="20px" MaxLength="4" runat="server" CssClass="Input"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtO" Width="20px" MaxLength="4" runat="server" CssClass="Input"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtTotal" runat="server" CssClass="Input"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                T</td>
            <td>
                H</td>
            <td>
                I</td>
            <td>
                O</td>
            <td>
                <asp:Button runat="server" ID="btnReset" Text="Vẽ lại" OnClick="btnReset_Click" />
                <asp:Button runat="server" ID="btnClose" Text="Đóng" OnClick="btnClose_Click" />
            </td>
        </tr>
    </table>
</div>
